bd8d51fa0a33d6d27dba088c57791e1650512fc0,src/jexer/TApplication.java,WidgetEventHandler,run,#,110

Before Change


                                // the handoff between yield() and
                                // closeWindow().

                                System.err.printf("secondary exiting at wrong time, why?\n");
                                synchronized (application.primaryEventHandler) {
                                    application.primaryEventHandler.notify();
                                }

After Change



                        synchronized (this) {
                            if (debugThreads) {
                                System.err.printf("%s %s sleep\n", this,
                                    primary ? "primary" : "secondary");
                            }

                            this.wait();